package cn.webrx;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeMap;
import java.util.Vector;

public class TreeMap1 {
    public static void main(String[] args) {
        TreeMap<Integer, String> tmap = new TreeMap<>();
        tmap.put(5, "java");
        tmap.put(2, "html");
        System.out.println(tmap);

        TreeMap<String, String> tm = new TreeMap<>();
        tm.put("s1", "java");
        tm.put("s6", "php");
        tm.put("s6", "python");
        tm.put("s2", "javascript");
        tm.put("aa","a1");
        tm.put("aa","a2");
        tm.put("aa","a3");
        tm.put("aa","a4");
        System.out.println(tm);

        //支持线程案例，在多线程并发开发没有
        Vector<String> vc = new Vector<>() ;


        List<String> li = new ArrayList<>() ;


    }
}
